<!DOCTYPE html>
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script th:src="@{|/js/jquery.min.js|}"></script>
    <script th:src="@{|/js/jquery.countdown.min.js|}"></script>
    <script th:src="@{|/js/secKill.js|}"></script>
    <script>
        $(function(){
            initSecKill([[${goods.id}]],[[${goods.startTime.getTime()}]],[[${goods.endTime.getTime()}]],[[${goods.price}]])
        })
    </script>
</head>
<body>
<div  th:object="${goods}">
    <div style="float: left">
        <img th:src="*{imageUrl}">
    </div>

    <div style="float: left;margin-top: 100px">
        [[*{nameDesc}]]
        <br>
        [[*{name}]][[*{price}]]
        <br><br>

        <input type="button" value="立即抢购" id="secKillBtn"  disabled>
        <span id="seckillTip"></span>
    </div>

</div>
</body>
</html>